<?php

namespace app\api\model;

use think\Model;
use think\Db;

class ElecOrder extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'ty_elec_order';
    /**
     * 获取
     */
    public static function addOrder($data)
    {
        $res = self::insert($data);
        return $res;
    }
    public static function updateOrder($where,$update)
    {
        $res = self::where($where)->update($update);
        return $res;
    }
    public static  function getTadayList($where)
    {
        $list = self::where($where)->select();
        return $list;
    }
}
